package com.wkbb.basic.feign;

import com.wkbb.common.dto.ResultDTO;
import com.wkbb.common.dto.wx.WechatMessageDto;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lizhichao
 * 创建时间：2019-11-15 09:53
 */
@FeignClient(name = "wkbb-wx-message-service")
public interface WxMsgFeignService {

    @ApiOperation(value = "微信消息推送")
    @RequestMapping(value = "/wxmsg/v1/push/sendWxMsg", method = RequestMethod.POST)
    ResultDTO<Object> sendWxMsg(
            @ApiParam(value = "组织Id", required = true) @RequestParam(name = "orgId") Long orgId,
            @ApiParam(value = "微信数据实体", required = true) @RequestBody() WechatMessageDto wechatMessageDto);

}
